using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace WindowsPhoneGame1
{
    public static class ResourceManager
    {
        static ContentManager _content;

        static public ContentManager Content {
            get {
                if (_content == null)
                    throw new Exception("content not set!");
                return _content;
            }

            set {
                _content = value;
            }
        }

        static public Texture2D LoadTexture(string name){
            Texture2D t;
            t = Content.Load<Texture2D>(@name);
            return t;
        }

        static public SpriteFont LoadSpriteFont(string name)
        {
            SpriteFont t;
            t = Content.Load<SpriteFont>(@name);
            return t;
        }

    }
}
